import Vue from 'vue'
import Router from 'vue-router'
// import Hello from '@/components/Hello'
const Report = resolve => require(['../components/report/Report'], resolve)
const ReportSwiper = resolve => require(['../components/report/ReportSwiper'], resolve)
//惠州查询学生报告
const HIndex = resolve => require(['../components/huizhou/Index'], resolve)
const HResult = resolve => require(['../components/huizhou/Result'], resolve)
const HReportList = resolve => require(['../components/huizhou/ReportList'], resolve)


Vue.use(Router)

export default new Router({

  mode: process.env.NODE_ENV === 'production' ? 'history' : 'hash',
  routes: [{
      path: '/',
      component: Report
    },
    {
      path: '/report',
      component: Report
    },
    {
      path: '/report-swiper',
      component: ReportSwiper
    },
    {
      path: '/h-index',
      component: HIndex
    },
    {
      path: '/h-result',
      component: HResult
    },
    {
      path: '/h-report-list',
      component: HReportList
    },
    // {
    //   path: '*',
    //   component: Report
    // },
    {
      path: '/c-index',
      component: () => import('../view/checkPoint/index.vue')
    },
    {
      path: '/c-form',
      component: () => import('../view/checkPoint/form.vue')
    }
  ]
})
